package xx.shiro.entity;

import java.util.Date;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 用户表(SysUser)表实体类
 *
 * @author halo-king
 * @since 2023-09-26 10:27:36
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class SysUser {
    //主键//
    @TableId
    private Integer id;

    //登录名
    private String username;
    //用户密码
    private String password;
    //昵称
    private String name;
    //当前状态(0未激活，1激活)
    private Object state;
    //密码错误次数
    private Object errorPwdTimes;
    //创建时间
    private Date createTime;
    //手机号码
    private String phone;
    //邮箱
    private String email;

    @TableField(exist = false)
    List<SysRole> sysRoleList;
    @TableField(exist = false)
    Set<SysPermissions> permissionsSet;
}

